package control;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class ServletExample extends HttpServlet {
	public void service(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {

		ObjectOutputStream output = null;
		try {
			output = new ObjectOutputStream(response.getOutputStream());
			String str = new String("Hello World");
			output.writeObject(str);
			output.flush();
			output.close();
			System.out.println("Message is===== " + str);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
